Skip to main content

CanvasOperationLineTo

Type

statement

Summary

Add a line to a canvas.

Syntax

line to <mPoint> on <mCanvas>

Description

Adds a line to mPoint on the current path of mCanvas

Parameters

NameTypeDescription

mCanvas

An expression which evaluates to a canvas.

mPoint

An expression which evaluates to a point.

Examples

// move to a point on the canvas
move to point [0,50] on this canvas

// add a line to the canvas path
line to point [50,50] on this canvas

// stroke the canvas path
stroke this canvas
Thank you for your feedback!

Was this page helpful?